home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xpaint-2.1.1 / text.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  1KB  |  31 lines

  1. /* +-------------------------------------------------------------------+ */
  2. /* | Copyright 1992, 1993, David Koblas (koblas@netcom.com)            | */
  3. /* |                                                                   | */
  4. /* | Permission to use, copy, modify, and to distribute this software  | */
  5. /* | and its documentation for any purpose is hereby granted without   | */
  6. /* | fee, provided that the above copyright notice appear in all       | */
  7. /* | copies and that both that copyright notice and this permission    | */
  8. /* | notice appear in supporting documentation.  There is no           | */
  9. /* | representations about the suitability of this software for        | */
  10. /* | any purpose.  this software is provided "as is" without express   | */
  11. /* | or implied warranty.                                              | */
  12. /* |                                                                   | */
  13. /* +-------------------------------------------------------------------+ */
  14.  
  15. typedef struct {
  16.     char    *title;
  17.     int    nprompt;
  18.     struct textPromptInfo {
  19.         char    *prompt;    /* displayed prompt */
  20.         int    len;        /* maximum string length */
  21.         char    *str;        /* displayed initial string */
  22.         char    *rstr;        /* returned string value */
  23.         Widget    w;        /* internal -- don't use */
  24.     } *prompts;
  25. } TextPromptInfo;
  26.  
  27. /*
  28. TextPrompt(parent, name, prompts, ok(), cancel(), closure)
  29. */
  30. extern void TextPrompt(Widget, char *, TextPromptInfo *, XtCallbackProc , XtCallbackProc , void *);
  31.